# Copyright (c) Ruslan Mikhnaylenko mirusnet@gmail.com
# 22.11.2011

PROG = performancer
CC = g++
CFLAGS =-Wall
LIB=$(shell mysql_config --cflags --libs)
 
#GROUP = wheel
#OWNER = mirus
#DEST_BIN = /home/mirus/bin/rls
#INSTALL = /usr/bin/install -v -c -m 300
RM = /bin/rm -f

all: ${PROG}

${PROG}: ${PROG}.o
	${CC} -o ${PROG} ${PROG}.o  ${CFLAGS} ${LIB}  

performancer.o: ${PROG}.c
	${CC} ${CFLAGS} ${LIB} -c ${PROG}.c

#install:
#	${INSTALL} -g ${GROUP} -o ${OWNER} ${PROG} ${DEST_BIN}

#deinstall:
#	${RM} ${DEST_BIN}
#

clean:
	${RM} ${PROG} *.o
